<?php
/**
 * Heartbeat CMS
 *
 * An open source content management system for PHP
 *
 * @package		Heartbeat CMS
 * @author		jyggen
 * @copyright	Copyright (c) 2010, Antidote Group.
 * @license		http://cms.antidote.nu/license.html
 * @link		http://cms.antidote.nu
 * @since		Version 1.0
 * @filesource
 */

require 'config.php';
require $config['system_path'] . 'routing.php';

$page     = (isset($_GET['page']) && !empty($_GET['page'])) ? $_GET['page'] : $config['index_page'];
$template = (isset($_GET['template']) && !empty($_GET['template'])) ? $_GET['template'] : $config['index_page'];
$content  = (isset($_GET['content']) && !empty($_GET['content'])) ? $_GET['content'] : NULL;

$route = new Routing($page, $template, $content);

/* End of file index.php */